package Chapter7_MultiplexingClass;

/**
 * Date: 2019/2/18
 * Time: 17:44
 * User: Driss.
 * 7.3 代理 小节示例代码
 */
public class SpaceShip extends SpaceShipControls {
    private String name;
    public SpaceShip(String name){
        this.name = name;
    }
    public String toString(){
        return name;
    }

    public static void main(String[] args) {
        SpaceShip protector = new SpaceShip("NSEA Protector");
        protector.forward(100);
    }

}
